package com.huabo.contract.service;

import com.hbfk.util.PageInfo;
import com.huabo.contract.oracle.entity.TblContractPayment;
import com.huabo.contract.oracle.entity.TblCyhwUnit;

import net.sf.json.JSONArray;

import java.math.BigDecimal;
import java.util.Map;

public interface TblContractPaymenService {
    Map<String,Object> findPaymentManagemenByPageInfo(PageInfo<TblContractPayment> pageInfo, String orgid, TblContractPayment payment, TblCyhwUnit unit,String flowid);

    TblContractPayment selectInfoById(BigDecimal paymentid);


    void updatePaymentInfo(TblContractPayment oldPayment);

    String savePaymentInfo(TblContractPayment payment);

    TblContractPayment findPaymentInfoByParmentId(Integer paymentId);

    void removePaymentInfo(Integer paymentId);

    TblContractPayment findByParmentId(BigDecimal parmentId);
    
    String setData(JSONArray arr,String type);
    
    String addPaymentInfo(TblContractPayment payment);
}
